package com.fangcun.bean.api.floor.response;

import java.util.Date;

import org.springframework.util.StringUtils;

import com.fangcun.common.util.PublicMethod;

import lombok.Data;

/**
 * @作者： 陳曉鬆 @时间： 2021年1月4日 - 下午5:33:14 @description：->
 */
@Data
public class FloorRoomDetailResponse {

	private Long teahouseId;

	private String provinceName;

	private String cityName;

	private String areaName;

	private String street;

	private String phone;

	private Date startTime;

	private Date endTime;

	private String distance;

	private String longitude;

	private String latitude;

	// -------------------------------------预约信息-------------------------------------------------

	private Integer type;

	private String layout;

	private Float highProportion;

	private Integer position;

	private String roomNumber;

	private Integer reserveVip;

	private String backgroundImage;

	/** 现有人数 大厅 **/
	private int nowPeopleNumber = 0;

	/** 是否可以预定 0-否 1-是 **/
	private int isReserve = 0;

	// -------------------------------------预约详情-------------------------------------------------

	private Long floorRoomId;

	private String name;

	private Float area;

	private Integer maxPeople;

	private String introduce;

	private String images;

	private String remark;

	public String getDistance() {
		if (!StringUtils.isEmpty(distance)) {
			distance = PublicMethod.TransNPoint(Double.valueOf(distance), "00") + "";
		}
		return distance;
	}

}
